<template>
  <a-drawer
    width="45%"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{ height: 'calc(100vh - 100px)', overflow: 'auto' }"
    @close="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
        <a-row :gutter="32">
          <a-col :span="12">
            <a-form-model-item label="创建者" prop="userId">
              <a-input v-model="form.userId" placeholder="请输入创建者" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="创建部门" prop="deptId">
              <a-input v-model="form.deptId" placeholder="请输入创建部门" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="创建名称" prop="userName">
              <a-input v-model="form.userName" placeholder="请输入创建名称" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="部门名称" prop="deptName">
              <a-input v-model="form.deptName" placeholder="请输入部门名称" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="公司ID" prop="companyId">
              <a-input v-model="form.companyId" placeholder="请输入公司ID" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="监督检查单位" prop="jianduDanwei">
              <a-input
                v-model="form.jianduDanwei"
                placeholder="请输入监督检查单位"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="被监督检查单位" prop="beiJianduDanwei">
              <a-input
                v-model="form.beiJianduDanwei"
                placeholder="请输入被监督检查单位"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="专项监督类别" prop="lelbie">
              <a-input v-model="form.lelbie" placeholder="请输入专项监督类别" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="专项监督内容" prop="leirong">
              <a-textarea
                v-model="form.leirong"
                placeholder="请输入专项监督内容"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="发现问题概况" prop="wentigaikuang">
              <a-textarea
                v-model="form.wentigaikuang"
                placeholder="请输入发现问题概况"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="问题整改情况" prop="zhenggaiqingkuang">
              <a-textarea
                v-model="form.zhenggaiqingkuang"
                placeholder="请输入问题整改情况"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="发现问题个数" prop="faxianwentishu">
              <a-input
                v-model="form.faxianwentishu"
                placeholder="请输入发现问题个数"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="需整改问题数" prop="xuyaozhenggaicount">
              <a-input
                v-model="form.xuyaozhenggaicount"
                placeholder="请输入需整改问题数"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="转问题线索个数" prop="zhuanwenticount">
              <a-input
                v-model="form.zhuanwenticount"
                placeholder="请输入转问题线索个数"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="是否下发纪检监察建议书"
              prop="isjijianshu"
            >
              <a-input
                v-model="form.isjijianshu"
                placeholder="请输入是否下发纪检监察建议书"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="已整改问题数" prop="yizhenggaicount">
              <a-input
                v-model="form.yizhenggaicount"
                placeholder="请输入已整改问题数"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="开展专项治理个数"
              prop="zhuanxizhilicount"
            >
              <a-input
                v-model="form.zhuanxizhilicount"
                placeholder="请输入开展专项治理个数"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="推动建章立制个数" prop="jzlzcount">
              <a-input
                v-model="form.jzlzcount"
                placeholder="请输入推动建章立制个数"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="建章立制名称" prop="jzlzming">
              <a-input
                v-model="form.jzlzming"
                placeholder="请输入建章立制名称"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="序号" prop="sort">
              <a-input-number
                v-model="form.sort"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="备注" prop="remark">
              <a-textarea
                v-model="form.remark"
                placeholder="请输入备注"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-spin>
      <div class="bottom-control">
        <a-space>
          <a-button @click="cancel"> 取消 </a-button>
          <a-button type="primary" @click="submitForm"> 保存 </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import BizZhuanxiangAssessEditForm from "./BizZhuanxiangAssessForm";
export default {
  ...BizZhuanxiangAssessEditForm,
};
</script>
